﻿package com.bizmlib.utils
{
	import flash.text.TextField;
	

	public function updateTextFieldLine(textField:TextField, text:String, lineIndex:int):void
	{
		//traceExternally("updateTextFieldLine(" + arguments + ")");
		
		var lineStartIndex:int = textField.getLineOffset(lineIndex);
		var lineEndIndex:int = textField.getLineLength(lineIndex);
		textField.replaceText(lineStartIndex, lineStartIndex + lineEndIndex - 1, text);
	}
}